import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import Vant from 'vant'
import { Divider, Form, Field, Button, RadioGroup, Radio } from 'vant'
import 'vant/lib/index.css'
import VueRouter from 'vue-router'
import VueHighlightJS from 'vue-highlightjs'
import 'highlight.js/styles/github.css'

Vue.use(Divider)
Vue.use(Form)
Vue.use(Field)
Vue.use(Button)
Vue.use(RadioGroup)
Vue.use(Radio)
Vue.use(VueHighlightJS)
Vue.use(VueRouter)
// Vue.use(Vant)
Vue.use(ElementUI)
Vue.config.productionTip = false

const routes = [{ path: '/', component: App }]

const router = new VueRouter({
  routes, // (缩写) 相当于 routes: routes
})

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
